home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / The Hacks! / Talking KeyBoard / Source / globals.c < prev    next >
Encoding:
Text File  |  1998-06-06  |  1.6 KB  |  39 lines  |  [TEXT/CWIE]

  1. // Program Author: Paul Baxter
  2. //    pbaxter@assistivetech.com
  3. //
  4. //
  5.  
  6. #include <Speech.h>
  7. #include <Ctype.h>
  8. #include <DeskBus.h>
  9. #include <Retrace.h>
  10.  
  11. #include "filter.h"
  12. #include "adb.h"
  13. #include "speech.h"
  14. #include "pref.h"
  15. #include "globals.h"
  16.  
  17. // Globals
  18. Boolean gQuitting = false;                                // quit flag
  19. Ptr gCharBuffer = nil;                                    // buffer with chars to speak
  20. Ptr gWordBuffer = nil;                                    // buffer with words to speak
  21. Ptr gSentenceBuffer = nil;                                // buffer with sentences to speak
  22. short gCharIndex = 0;                                    // num chars in char buffer
  23. short gWordIndex = 0;                                    // num chars in word buffer
  24. short gSentenceIndex = 0;                                // num chars in sentence buffer
  25. Ptr gFilterProc = nil;                                    // address of filter proc
  26. QHdr gForwardedEvents = {0, 0, 0};                        // Que to foward key events to our app
  27. ProcessSerialNumber gPSN = {0 , 0};                        // serial number of our app
  28. ADBServiceRoutineUPP gKeyBoardServiceRoutine = nil;        // our ADB Service routine
  29. ADBServiceRoutineUPP gOldKeyBoardServiceRoutine = nil;    // original Service routine pointer
  30. ADBAddress gKeyBoardADBAddress = -1;                    // ADB address of the keyboard
  31. SpeechChannel gSpeechChannel = nil;                        // our speech channel
  32. short gVoiceItem = -1;                                    // menu item of current voice
  33. Boolean gLastSpeechChar = false;                        // flag for where the last spoken text came from
  34. KeyPronunciation* gPronounce = nil;                        // pronunciation of chars
  35. long gNumPronounces = 0;                                // number of pronunciations
  36. Boolean gShiftState = false;                            // is the shift key down?
  37. PrefHandle gPrefs = nil;                                // handle to our prefs
  38. short gPronounceIndex[kNumKeys];                        // indexs into speech strings
  39.